import request from '@/utils/request'

// 查询班级年级信息列表
export function listClassGrade(query) {
  return request({
    url: '/edu/classGrade/list',
    method: 'get',
    params: query
  })
}

// 查询班级年级信息详细
export function getClassGrade(relaId) {
  return request({
    url: '/edu/classGrade/' + relaId,
    method: 'get'
  })
}

// 新增班级年级信息
export function addClassGrade(data) {
  return request({
    url: '/edu/classGrade',
    method: 'post',
    data: data
  })
}

// 修改班级年级信息
export function updateClassGrade(data) {
  return request({
    url: '/edu/classGrade',
    method: 'put',
    data: data
  })
}

// 删除班级年级信息
export function delClassGrade(relaId) {
  return request({
    url: '/edu/classGrade/' + relaId,
    method: 'delete'
  })
}

// 导出班级年级信息
export function exportClassGrade(query) {
  return request({
    url: '/edu/classGrade/export',
    method: 'get',
    params: query
  })
}